<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        男 <input   type="radio" name="sex" value='男' v-model="sex">
        女 <input   type="radio" name="sex" value='女' v-model="sex">
        <div>
            <button @click='aaa'>按钮</button>
        </div>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    //  欢迎进入vue元编程的世界
    var app = new Vue({
        el: '#app',
        data: {
            sex: '女'
        },
        methods: {
            aaa() {
                console.log(this.sex)
            } 
        }

    })
</script>

</html>